package com.example.webmodule.command;

import com.example.webmodule.strategy.RegistryStrategyFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @ClassName EY-JobCommandLiner
 * @Description com.example.webmodule.command
 * @Author menyj
 * @Date 2025/3/19
 **/
@Component
public class JobCommandLineRunner implements CommandLineRunner {

    @Autowired
    private RegistryStrategyFactory registryStrategyFactory;

    @Override
    public void run(String... args) throws Exception {
        registryStrategyFactory.getStrategy().init();
    }
}
